import request from '@/utils/request';
//登录接口
export const login=(data)=>{
	return request.post('/weappUser/login',data)
}

//首页数据
export const getHomeData = (data) => {
    return request.get('/home/getHomeData', { params: data })
}

//消息列表
export const message = (data) => {
    return request.get('/home/message', { params: data })
}

//养殖棚列表
export const house = (data) => {
    return request.get('/home/house', { params: data })
}

//养殖棚信息
export const setting = (data) => {
    return request.get('/home/setting', { params: data })
}

//监控视频列表
export const getDevices = (data) => {
    return request.get('/home/getDevices/video', { params: data })
}

//低电量设备列表
export const  getEartag  =(data) =>{
	return request.get('/home/getDevices/eartag',{params:data})
}

//离线设备列表
export const getNecklace = (data) =>{
	return request.get('/home/getDevices/necklace',{params:data})
}